package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.paas.pojo.dto.SaasFormSaveDTO;
import com.xbongbong.sys.domain.entity.UserEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *回款
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicPaymentSheetDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812515L;

    private Long dataId;

    private Long formId;

    private SaasFormSaveDTO saasFormSaveDTO;

    private UserEntity creator;

    public static DynamicPaymentSheetDTO initDynamicPaymentSheetDTO(Long dataId, Long formId, SaasFormSaveDTO saasFormSaveDTO, UserEntity creator) {
        DynamicPaymentSheetDTO dynamicPaymentSheetDTO = new DynamicPaymentSheetDTO();
        dynamicPaymentSheetDTO.setDataId(dataId);
        dynamicPaymentSheetDTO.setFormId(formId);
        dynamicPaymentSheetDTO.setSaasFormSaveDTO(saasFormSaveDTO);
        dynamicPaymentSheetDTO.setCreator(creator);
        return dynamicPaymentSheetDTO;
    }
}
